package com.example.demo.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
@Data
@Configuration
@ConfigurationProperties(prefix = "aliyun")
public class AliyunConfig {
    private Dyvms dyvms;
    private Sms sms;

    // getters and setters

    @Data
    public static class Dyvms {
        private String ttsCode;
        private String calledShowNumber;

        // getters and setters
    }
    @Data
    public static class Sms {
        private String templateCode;
        private String templateParam;
        private String signName;

        // getters and setters
    }
}
